home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 008a / sysmap26.zip / SYSMAP.DOC next >
Text File  |  1991-11-28  |  16KB  |  366 lines

  1.  SysMap:  Version 2.6, September 1991 -- upgrade to support DOS 5.
  2.  
  3.  (C) Copyright 1989-1991, Earl F. Glynn, Overland Park, KS.
  4.                           Compuserve 73257,3527
  5.  All Rights Reserved.  This program may be freely distributed only for
  6.  non-commercial use.
  7.  
  8. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  9.  
  10.  SysMap shows a map of a PC including BIOS, DOS, memory and disk information.
  11.  SysMap is a useful audit tool for making an inventory of software and
  12.  PC configurations.  In only a few seconds, a complete list of software
  13.  and configuration information can be recorded on a floppy disk.  This
  14.  ASCII file can be printed, or viewed using the DOS TYPE command
  15.  (or MORE), any editor, or browse utilities, such as PC Magazine's DR.
  16.  
  17. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  18.  
  19.  Syntax:
  20.  
  21.    SYSMAP [dirspec] [/options] [> output.lst]
  22.  
  23.  Default:
  24.  
  25.    SYSMAP C:\ /F
  26.  
  27.  Typical Usage:
  28.  
  29.    SYSMAP > A:system.map
  30.  
  31.  where
  32.  
  33.    'dirspec' is a directory specification. The default is the root
  34.    directory on the C drive, but any directory can be specified,
  35.    e.g., C:\DOS\.  Information on the specified directory, and all
  36.    of its subdirectories, will be included in the system map.
  37.    Other system information is displayed ONLY when the 'dirspec'
  38.    is the root directory of a drive, such as C:\.
  39.  
  40.    '/option' is a one of the following characters (either case) that
  41.    controls the sort order of the files.  Directories are always
  42.    sorted in ascending order by name.
  43.  
  44.        D -- DOS order (no sort)
  45.  
  46.        E -- sort by extension (ascending) and filename (ascending)
  47.  
  48.        F -- sort by filespec -- filename.ext -- (ascending)  [default]
  49.  
  50.        S -- sort by file size (descending) and filespec (ascending)
  51.  
  52.        T -- sort by time stamp (descending) and filespec (ascending)
  53.  
  54.    One additional option requests a CRC-16 code be calculated for each
  55.    file:
  56.  
  57.        C -- calculate CRC-16 on each file and checksum of CRC codes
  58.             for each directory.  Specifying this option will take
  59.             considerable extra time.  However, specifying this option
  60.             on new machines will allow one to determine if any files
  61.             are ever modified.  This method of detecting changes to
  62.             files should be useful in identifying files possibly
  63.             infected with computer viruses.
  64.  
  65.  Output from SysMap can be redirected to a disk file using a
  66.  command such as:  SYSMAP C:\ /E > A:disk.map
  67.  
  68. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  69.  
  70.  Limitations:  Only the first 1000 entries (files or subdirectories)
  71.                in any directory will be processed.
  72.  
  73.                SysMap has only been tested extensively under DOS 3.3
  74.                on a variety of machines, e.g, PS/2s, ATs, XTs, Compaqs,
  75.                Grids, Toshibas, Dells.  Testing on machines with DOS
  76.                4 or 5 has been very limited.
  77.  
  78.                The "machine type" listed by SysMap is based on a code
  79.                returned by the BIOS and is not currently based on
  80.                actual hardware.  This "machine type" code should be
  81.                accurate for IBM machines, but may or may not be
  82.                accurate for other vendors.
  83.  
  84. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  85.  
  86.  Acknowledgements:
  87.  
  88.  Information for developing SysMap came from a number of sources
  89.  including, The Waite Group's "MS-DOS Developer's Guide" (second
  90.  edition), Ray Duncan's "IBM ROM BIOS" and "MS-DOS Functions"
  91.  reference series, Que's "DOS and BIOS Functions Quick Reference",
  92.  Steve Grant's (Long Beach, CA) SYSID.PAS from local BBS, and
  93.  Dave Williams' (Jacsonville, AR) "Programming Technical Reference"
  94.  from a local BBS.  Also consulted were IBM's "PS/2 Hardware Interface
  95.  Technical Reference, "Technical Reference Personal Computer AT",
  96.  "Disk Operating System Version 3.30 Technical Reference", and
  97.  various PC magazines and journals.
  98.  
  99. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  100.  
  101. Source Code:
  102.  
  103.   SysMap is written in Turbo Pasal 6.0.  At present the source code
  104.   is not available as shareware.
  105.  
  106. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  107.  
  108. Sample SysMap output from a Dell 220 computer:
  109.  
  110.  
  111.  
  112. System Map (Version Sep 91) -- System Summary and Inventory
  113.  
  114. BIOS Information
  115.   Machine type is 80286 PC XT-286 (Model FC, 02), BIOS Revision 0
  116.   PC bus
  117.   Real time clock present
  118.   Copyright Date 01/15/88   Part Number  (FFFFFFFFFFFFFFFF)
  119.   Memory:  640 KB conventional, 0 KB extended
  120.   Active video adapter + monitor:  VGA + analog color
  121.   BIOS support for enhanced keyboard; enhanced keyboard present
  122.   1 printer port, 2 serial ports, 1 floppy drive
  123.   math coprocessor, no game port, mouse
  124.  
  125. Clocks
  126.   CMOS Clock:  Thursday, 11/28/91 22:03:05
  127.    DOS Clock:  Thursday, 11/28/91 22:03:30.12
  128.   Difference:    -25.12 seconds (CMOS - DOS)
  129.  
  130. DOS System Configuration Files
  131.  
  132.   C:\AUTOEXEC.BAT     11/20/91 22:12:26     Attributes:  A-----
  133.     @ECHO OFF
  134.     PATH C:\DOS
  135.     SET TEMP=C:\TEMPFILE
  136.     C:\dos\doskey /bufsize=256
  137.     C:\TOOLS\SETUP2 C:\TOOLS\LASERJET.IIP
  138.     C:\MSMOUSE\mouse
  139.     path c:\dos;c:\borlandc\bin;c:\tp;c:\wp51;c:\tools;d:\develop;c:\qpro
  140.     PROMPT $p   $t$h$h$h$_$g
  141.     SYSCHK
  142.  
  143.   C:\CONFIG.SYS       10/29/91 00:17:50     Attributes:  A-----
  144.     DEVICE=C:\DOS\SETVER.EXE
  145.     SHELL=C:\DOS\COMMAND.COM C:\DOS\  /p
  146.     FILES=40
  147.     BUFFERS=20
  148.  
  149. DOS Memory Map
  150.   Memory
  151.   Control    Block Size
  152.    Block       [Bytes]       Owner
  153.   Segment    hex   decimal  Segment      Type                Name
  154.   -------  ------- -------  -------  ------------  ------------------------
  155.     0B5F    03E20    15904    0008   System        <DOS 5.0 kernel>
  156.     0F42    01160     4448    0F43   Program       <shell>
  157.     1059    00040       64    0000   Free Space    <unallocated>
  158.     105E    00100      256    0F43   Environment   <shell>
  159.     106F    00050       80    0000   Free Space    <unallocated>
  160.     1075    00F30     3888    1076   Program       <unknown>
  161.     1169    01490     5264    116A   Program       <unknown>
  162.     12B3    03A80    14976    12B4   Program       <unknown>
  163.     165C    000D0      208    166B   Environment   D:\SYSMAP\SYSMAP.EXE
  164.     166A    37D30   228656    166B   Program       D:\SYSMAP\SYSMAP.EXE
  165.     4E3E    51C10   334864    0000   Free Space    <unallocated>
  166.  
  167. DOS Environment Variables
  168.   COMSPEC=C:\DOS\COMMAND.COM
  169.   TEMP=C:\TEMPFILE
  170.   PATH=C:\DOS;C:\BORLANDC\BIN;C:\TP;C:\WP51;C:\TOOLS;D:\DEVELOP;C:\QPRO
  171.   PROMPT=$p   $t$h$h$h$_$g
  172.  
  173. CMOS RAM Memory
  174.    . . . . | . . . . | . . . . | .  ....|....|....|.
  175.   05000300220007281191260250800000  ...."..(..&.P...
  176.   40FFF0FF41800200002AFFFFFFFFFFFA  @...A....*......
  177.   FFFFFFFFFBFFFFFFFFFFFFFFFFFF17FE  ................
  178.   000019FFFFFFFFFFFFFFFFFFFFFFFFFF  ................
  179.  
  180. Disk Summary
  181.         Local/        B y t e s           Percent
  182.   Disk    LAN    Capacity   Available   Free  Used      Current Directory
  183.   ----  ------  ----------  ----------  ----  ----  -------------------------
  184.     A    Local     1457664     1457664 100.0   0.0  \
  185.     C    Local    33409024     1886208   5.6  94.4  \
  186.    *D    Local    50348032    18505728  36.8  63.2  \SYSMAP
  187.  
  188.                                                      Root Dir
  189.         Media  Bytes/  Sectors/  Bytes/               Entries
  190.   Disk  Type   Sector   Cluster  Cluster  Clusters   Max   Now
  191.   ----  -----  ------  --------  -------  --------  ----  ----
  192.     A     240     512         1      512      2847   224     0
  193.     C     248     512         4     2048     16313   512    17
  194.    *D     248     512         4     2048     24584   512    23
  195.    * = default drive
  196.  
  197. Directory List:  C:\
  198. ---------------
  199.                                              Frag-
  200. Composite                           Size    mented
  201.   Flags     Date     Time   Files  [Bytes]   Bytes           Directory
  202. --------- -------- -------- ----- --------- ------- ---------------------------
  203.   ADVSHR  06/07/90 21:14:38     7    128398    8818 C:\
  204.   AD----  03/11/91 21:48:58     3     64457    5175 C:\BORLANDC\
  205.   A-----  03/11/91 21:49:02    15    161052   17124 C:\BORLANDC\BGI\
  206.   A-----  03/11/91 21:49:00    61   7323255   67977 C:\BORLANDC\BIN\
  207.   -D----  03/11/91 21:49:12     0         0       0 C:\BORLANDC\CLASSLIB\
  208.   A-----  03/11/91 21:53:40    14     66488   15432 C:\BORLANDC\CLASSLIB\EXAMPLES\
  209.   A-----  03/11/91 21:49:12    25    119308   26100 C:\BORLANDC\CLASSLIB\INCLUDE\
  210.   A-----  03/11/91 21:56:20     1     56832     512 C:\BORLANDC\CLASSLIB\LIB\
  211.   A-----  03/11/91 22:07:58    22    123712   21696 C:\BORLANDC\CLASSLIB\SOURCE\
  212.   A-----  03/11/91 21:48:58    11    410219   11669 C:\BORLANDC\DOC\
  213.   AD----  03/11/91 21:49:30   234   1051761  261007 C:\BORLANDC\EXAMPLES\
  214.   A-----  03/11/91 21:49:30     5     68156    5572 C:\BORLANDC\EXAMPLES\STARTUP\
  215.   A-----  03/11/91 22:00:44     9     77378   10686 C:\BORLANDC\EXAMPLES\TCALC\
  216.   AD----  03/11/91 21:48:58    42    175280   43856 C:\BORLANDC\INCLUDE\
  217.   A-----  03/11/91 21:54:36     3      2230    3914 C:\BORLANDC\INCLUDE\SYS\
  218.   A-----  03/11/91 21:48:58    39   1600681   45911 C:\BORLANDC\LIB\
  219.   A-----  06/07/90 21:15:04    99   2363149  100595 C:\DOS\
  220.   [... 23 lines deleted ...]
  221.   A-----  07/05/91 21:57:58     5    103373    7219 C:\MSMOUSE\
  222.   AD----  03/11/91 22:15:22   114   3138097  124367 C:\QPRO\
  223.   A-----  03/11/91 22:16:12    27    551958   27626 C:\QPRO\FONTS\
  224.   A-----  06/12/91 22:42:32     5         6    2042 C:\TEMPFILE\
  225.   A-----  06/07/90 21:20:06    84   1104554  101718 C:\TOOLS\
  226.   AD----  11/14/90 20:44:48    14   1198516   15948 C:\TP\
  227.   A-----  11/14/90 20:44:50    30    272322   34878 C:\TP\BGI\
  228.   A-----  11/14/90 20:44:50    22    234181   27963 C:\TP\DOC\
  229.   A-----  06/07/90 23:08:10   109   4705783  109065 C:\WP51\
  230.                             ----- --------- ------- ---------------------------
  231.                              1296  29874515 1457837 49 directories
  232.  
  233.   1229 files to be archived
  234.      2 system files
  235.      3 hidden files (includes VolumeID file)
  236.      1 read only file
  237.  
  238.   Disk Summary
  239.  
  240.   100.00%  33409024 bytes on disk C
  241.    89.40%  29869227 bytes in 1293 user files
  242.     0.02%      5288 bytes in 3 hidden files
  243.     4.36%   1457837 bytes internal file fragmentation
  244.     0.35%    116736 bytes (estimate) in 48 directories (excludes root directory)
  245.     5.65%   1886208 bytes available
  246.     0.22%     73728 bytes unexplained
  247.                     (bad sectors, unchained clusters, directory estimate)
  248.  
  249. Directory List:  D:\
  250. ---------------
  251.                                              Frag-
  252. Composite                           Size    mented
  253.   Flags     Date     Time   Files  [Bytes]   Bytes           Directory
  254. --------- -------- -------- ----- --------- ------- ---------------------------
  255.   ADV---  06/12/91 01:15:30     1         0       0 D:\
  256.   A-----  06/12/91 19:00:48     5   1851456    4032 D:\ALGO2.3\
  257.   ------  11/23/91 19:35:28     0         0       0 D:\BRIAN\
  258.   [... 39 lines deleted ...]
  259.                             ----- --------- ------- ---------------------------
  260.                               980  30669192 1078904 42 directories
  261.  
  262.    980 files to be archived
  263.      1 hidden file (includes VolumeID file)
  264.  
  265.   Disk Summary
  266.  
  267.   100.00%  50348032 bytes on disk D
  268.    60.91%  30669192 bytes in 979 user files
  269.     0.00%         0 bytes in 1 hidden files
  270.     2.14%   1078904 bytes internal file fragmentation
  271.     0.19%     96256 bytes (estimate) in 41 directories (excludes root directory)
  272.    36.74%  18495488 bytes available
  273.     0.02%      8192 bytes unexplained
  274.                     (bad sectors, unchained clusters, directory estimate)
  275.  
  276. File List:  C:\
  277. ----------
  278.  
  279. Directory C:\*.*
  280.                           Frag-   Attri-
  281.                   Size    mented   bute
  282.   Filename.Ext  [bytes]    bytes  Flags   Day    Date      Time
  283.   ------------  --------  ------  ------  ---  --------  --------
  284.   AUTOEXEC.BAT       293    1755  A-----  Wed  11/20/91  22:12:26
  285.   COMMAND .COM     47845    1307  A-----  Tue  04/09/91  05:00:00
  286.   CONFIG  .SYS        87    1961  A-----  Tue  10/29/91  00:17:50
  287.   GLYNN                0       0  A-V---  Thu  06/07/90  21:14:38
  288.   IO      .SYS     33430    1386  ---SH-  Tue  04/09/91  05:00:00
  289.   MSDOS   .SYS     37394    1518  ---SH-  Tue  04/09/91  05:00:00
  290.   WINA20  .386      9349     891  -----R  Tue  04/09/91  05:00:00
  291.   ------------  --------  ------
  292.      7 Files      128398    8818
  293.  
  294.                                 Attribute
  295.   Subdirectory                    Flags   Day    Date      Time
  296.   ------------                    ------  ---  --------  --------
  297.   BORLANDC                        -D----  Mon  03/11/91  21:48:58
  298.   DOS                             -D----  Thu  06/07/90  21:15:04
  299.   GAMES                           -D----  Sat  07/21/90  16:12:04
  300.   MOUSE                           -D----  Wed  10/23/91  21:20:06
  301.   MSMOUSE                         -D----  Fri  07/05/91  21:57:58
  302.   QPRO                            -D----  Mon  03/11/91  22:15:22
  303.   TEMPFILE                        -D----  Wed  06/12/91  22:42:32
  304.   TOOLS                           -D----  Thu  06/07/90  21:20:06
  305.   TP                              -D----  Wed  11/14/90  20:44:48
  306.   WP51                            -D----  Thu  06/07/90  23:08:10
  307.   ------------
  308.     10 Subdirectories
  309.  
  310. Directory C:\BORLANDC\*.*
  311.                           Frag-   Attri-
  312.                   Size    mented   bute
  313.   Filename.Ext  [bytes]    bytes  Flags   Day    Date      Time
  314.   ------------  --------  ------  ------  ---  --------  --------
  315.   FILELIST.DOC     35271    1593  A-----  Wed  02/13/91  02:00:00
  316.   README           24969    1655  A-----  Wed  02/13/91  02:00:00
  317.   README  .COM      4217    1927  A-----  Wed  02/13/91  02:00:00
  318.   ------------  --------  ------
  319.      3 Files       64457    5175
  320.  
  321.                                 Attribute
  322.   Subdirectory                    Flags   Day    Date      Time
  323.   ------------                    ------  ---  --------  --------
  324.   BGI                             -D----  Mon  03/11/91  21:49:02
  325.   BIN                             -D----  Mon  03/11/91  21:49:00
  326.   CLASSLIB                        -D----  Mon  03/11/91  21:49:12
  327.   DOC                             -D----  Mon  03/11/91  21:48:58
  328.   EXAMPLES                        -D----  Mon  03/11/91  21:49:30
  329.   INCLUDE                         -D----  Mon  03/11/91  21:48:58
  330.   LIB                             -D----  Mon  03/11/91  21:48:58
  331.   ------------
  332.      7 Subdirectories
  333.  
  334.  
  335. [... 3100 lines deleted ...]
  336.  
  337.  
  338. Attribute Flag Description:
  339.  
  340.   A - Archive Status:  set "on" when file is opened and closed;
  341.                        set "off" by DOS BACKUP or XCOPY ... /M;
  342.                        set "on" or "off" by DOS ATTRIB command
  343.   D - Directory     :  "file" is subdirectory
  344.   V - Volume ID     :  "file" is volume label (see DOS LABEL command)
  345.   S - System File   :  special system file
  346.   H - Hidden        :  file is excluded from normal directory searches
  347.   R - Read Only     :  file cannot be erased;
  348.                          set "on" or "off" by DOS ATTRIB command
  349.  
  350.   Composite flag in Directory Summary is "on" if directory "file" or any
  351.   file/subdirectory has the flag on.
  352.  
  353. SysMap Elapsed Time:   16.92 seconds (00:17)
  354.  
  355. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  356.  
  357. Comment:
  358.  
  359. "Fragmented Bytes" above is the amount of disk space allocated to
  360. a file but not shown in the normal DOS DIR command.  Since files
  361. are allocated in integer clusters, a certain amount of space is
  362. allocated but wasted for every file, unless its size happens to
  363. be exactly a multiple of the cluster size.  A large number of small
  364. files can waste considerable disk space due to this internal file
  365. fragmentation.
  366.